import request from '@/utils/request'
//  活动列表查询
export const getactivitylist = data => {
  return request({
    url: '/activity/activelist',
    method: 'post',
    data: data,
  })
}
// 活动删除
export const activedel = id => {
  return request({
    method: 'delete',
    url: '/activity/activeDelete',
    params: { id: id },
  })
}
// 活动添加
export const activesave = data => {
  return request({
    method: 'post',
    url: '/activity/sativesave',
    data: data,
  })
}
// 活动修改
export const activeupdate = data => {
  return request({
    method: 'post',
    url: '/activity/activeupdate',
    data: data,
  })
}
//用户活动领取记录列表
export const getactivityrecordlist = data => {
  return request({
    url: '/activity/getActivityRecordList',
    method: 'post',
    data: data,
  })
}
// 换电柜用户消费记录
export const getscarifylist = data => {
  return request({
    url: '/scarify/getScarifyList',
    method: 'post',
    data: data,
  })
}
